package Beginners;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.StreamTokenizer;
import java.util.Stack;

public class P1001
{	public static void main(String[] args) throws IOException
	{	StreamTokenizer in=new StreamTokenizer(new InputStreamReader(System.in));
		Stack<Double> stk=new Stack<Double>();
		int j;
		while ((j=in.nextToken())!=StreamTokenizer.TT_EOF)
		{	if (j==StreamTokenizer.TT_NUMBER)
				stk.push(Math.sqrt(in.nval));
		}
		while (!stk.isEmpty()) System.out.printf("%.4f\n", stk.pop());
	}
}
